import React, { Component } from 'react'
import { Provider } from "react-redux"
import configureStore from './store'
import { BrowserRouter } from 'react-router-dom'
import {
	BaseFrame
} from './pages'

const store = configureStore()


export default class App extends Component {
    /*
    * Provider       : 用于传递 store
    * BrowserRouter  : url 和 页面的对应
    * */
    render() {
        return (
            <Provider store={store}>
                <BrowserRouter>
                    <BaseFrame />
                </BrowserRouter>
            </Provider>
        )
    }

  /*render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to React</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
      </div>
    );
  }*/
}

